package JavaSE.BLS.Inherit.Sample;

import java.util.HashMap;
import java.util.Map;

public class Child extends Parent
{
    
    public int a = 2;
    public static int b = 2;
    
    public Child()
    {
        System.out.println("child is created");
    }
    
    {
        System.out.println("child no static");
    }
    
    static
    {
        System.out.println("child static");
    }
    
    protected void method()
    {
        System.out.println("child method");
    }
    
    @Override
    public HashMap getMap()
    {
        return super.getMap();
    }
    
    public int getMapT(Map<Integer, Integer> map)
    {
        System.out.println("子类getMapT");
        map.put(1,1);
        return map.get(1);
    }
}
